package com.zkthink.ceres.member.enums;


import com.zkthink.exception.BizException;
import lombok.Getter;

//0:普通新用户 1:普通老用户 2: 3: 4:预销户 5 销户
@Getter
public enum ManageTypeEnum {
    Market_ZongJian(1, "市场总监"),
    YunYing_ZongJian(2, "运营总监"),
    JianYu_ZongCai(3, "教育总裁"),
    Market_ZongCai(4, "市场总裁"),
    Market_DongshiZhang(5, "市场董事长"),
    City_DaiLi(6, "市级代理"),
    Province_DaiLi(7, "省级代理"),
    DuDao_Service(8, "服务督导"),

    ;

    private int code;

    private String desc;

    ManageTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static ManageTypeEnum getDscByType(Integer type) {
        for (ManageTypeEnum p : values()) {
            if (p.getCode() == type.intValue()) {
                return p;
            }
        }
        throw new BizException("no support promotionPlan");
    }
}
